<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页面</title>
<import type='css' file="Css.basic" />
<import type='css' file="Css.login" />
<import type='css' file="Css.validate" />
<js href="__JS__/jquery.1.7.min.js" />
<!--[if IE 6]>
<script src="__JS__/DD_belatedPNG.js"></script>
<script>
  DD_belatedPNG.fix('*');  //class="png_bg"
</script>
<![endif]-->
</head>
<body>

<div id="sky_denglupage">
	 <!--pagehome begain-->
<include file="Public:header"/>
	 <div class="sky_dengluye">
	   <!--denglu begain-->
     
 <div class="sky_dltop"><img src="__IMAGES__/Home/login/denglu_top.gif" width="953" height="141" /></div>
             <div class="sky_dlct">
                <div class="sky_dlctleft">
                  <div class="sky_dlctl70"><img src="__IMAGES__/Home/login/denglu_left.gif" width="480" height="70" /></div>
                  <div class="sky_dlctqq">
                     <div  class="sky_dlct32"><a href="/qq/oauth/login.php"><img src="__IMAGES__/Home/login/denglu_qq.gif" width="170" height="32" /></a></div>
                     <div  class="sky_dlct32"><a href="{$code_url}"><img src="__IMAGES__/Home/login/denglu_xinlang.gif" width="146" height="32" /></a></div>
                  </div>
                  <div class="sky_dlcttishi sky_style2">我还不是吃好好的用户？30秒完成注册！</div>              
        <div class="sky_dlct29">
         <div class="sky_dlctkuaisu sky_style2"><a href="/index.php/Home/Register/Index">快速注册</a></div>
    </div>
                    
              </div>
              
                <div class="sky_dlctright">
                   <div class="sky_dlcrtop sky_style1">会员登录</div>
                   <form action="/index.php/Home/Login/loginNow" method="post" id="form1">
                   <input type="hidden" name="backurl" value="{$back}" />
                   <div class="sky_dlcrct">
                     <div class="sky_dlcrct30 sky_style2"><span style=" color:#ff0000">*</span> 用户名/Email</div>
                          <div class="sky_dlcrct30"><input style="width:270px; height:24px; border:1px solid #cccccc; line-height:24px; padding-left:10px" name="username" type="text" id="username" size="40" /></div>
                          <div class="sky_dlcrcttishi"></div>
                          <div class="sky_dlcrct30 sky_style2"><span style=" color:#ff0000">*</span> 密码</div>
                          <div class="sky_dlcrct30"><input style="width:270px; height:24px; border:1px solid #cccccc; line-height:24px; padding-left:10px" name="password" type="password" id="password" size="40" /></div>
                          <div class="sky_dlcrcttishi"></div>
                          <div class="sky_dlcrctyzm30 sky_style2">
                            <div class="sky_yanzhengma">请输入验证码：</div>
						<div class="sky_yanzhengmakuang">
                            <span><img id="verifyImg" src="/index.php/Home/Register/verify" /></span><input name="code" style="width:70px; height:25px; border:1px solid #cccccc; margin:0px; padding:0px; line-height:25px; padding-left:10px" type="text" id="code" size="" />
                         </div>
                          <div class="sky_dlcrcttishi"></div>
                          </div>
                          <div class="sky_dlcrct30 sky_style2">
                     	<div class="sky_dlpic"><input type="submit" value="登录"></div><input type="checkbox" name="checkbox" id="checkbox" /> 记住我 <a href="__indexLib__/Login/Select_pwd">忘记密码？</a></div>
　　　　　　</div>

                   <div class="sky_dlcrbottom"></div>
                 
                </div>
             </div>
	   <!--denglu end-->
       </div>

<js href="__JS__/jquery.validate.js" />
<script type="text/javascript">
$(function(){
	$('#checkbox').attr('checked', 'checked');
	$.validator.setDefaults({       
		    	 submitHandler: function(form) {    
		         form.submit();    
		     }       
		 }); 	
var validators = $("#form1").validate({
	rules:{
		username:{
			required:true
		},
		password:{
			required:true
		},
		code:{
			required:true
		}
	},
	messages:{
		username:{
			required:'用户名不能为空!'
		},
		password:{
			required:'请输入密码!'
		},
		code:{
			required:'请输入验证码!'
		}
	},
	errorPlacement: function(error, element){
		element.parent().next().html(error);
		return false;
	},
	success : function(label) {
		label.html("&nbsp;").addClass("checked");
	}
});

$("#verifyImg").click(function(){
	//重载验证码
	var timenow = new Date().getTime();
	document.getElementById('verifyImg').src= "/index.php/Home/Register/verify/"+timenow;
})
})
</script>
<include file="Public:footer"/>
